extends RayCast2D


signal entered
signal exited


var last


func _ready():
	add_exception(owner)


func _physics_process(delta):
	if is_colliding():
		if not last:
			last = true
			emit_signal("entered")
	else:
		if last:
			last = false
			emit_signal("exited")

